﻿/**
 * @file manager.h
 * @author tjc
 * @brief 管理界面模块
 * @version 1.0
 * @date 2024-2-25
 */

#ifndef MANAGER_H
#define MANAGER_H
#include <QMainWindow>
#include <QTabWidget>
#include <QDebug>
#include <QMenu>
#include <QMenuBar>
#include <QAction>
#include <QStatusBar>
#include<ctime>

#include "common.h"
#include "furniturewidget.h"
#include "tcpserver.h"
#include "camerawidget.h"
#include "musicwidget.h"
//整个项目的管理类，统一组织 FurnitureWidget、CameraWidget、MusicWidget
class Manager : public QMainWindow
{
    Q_OBJECT
public:
    explicit Manager(QMainWindow *parent = 0);
    ~Manager();
    FuTcpServer *fuTcpServer;
    FurnitureWidget *furnitureWidget;
    CameraWidget *cameraWidget;
    MusicWidget *musicWidget;
    QLabel *connectedStatus;
public slots:
    void slot_readData();
    void slot_tabChange(int index);
private:
    int lastTabIndex = 0;
};
#endif // MANAGER_H
